/* * {
  box-sizing: border-box;
} */

html {
  height: 100%;
  width: 100%;
  padding: 0px;
  margin: 0px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}
body {
  height: 100%;
  width: 100%;
  padding: 0px;
  margin: 0px;
}

header {
  box-sizing: border-box;
  display: block;
  height: 30px;
  border-bottom: #81c5ba solid 1px;
  font-size: 16px;
  width: 100%;
  padding: 5px;
}

header nav {
  display: inline-block;
  margin: auto;
}

header nav a {
  display: inline-block;
  margin: 0px 5px;
}

header right {
  display: block;
  float: right;
}

/* tab栏切换容器 */

right {
  display: block;
  float: right;
}

right a {
  padding-left: 5px;
  padding-right: 5px;
}

.click {
  cursor: pointer;
}
.click:hover {
  color: blue;
  text-decoration: underline;
}

tab {
  margin-top: 20px;
  margin-bottom: 10px;
  border-bottom: 1px solid #81c5ba;
  display: block;
  padding-left: 40px;
}

/* tab切换按钮 */
tab a,
tab-nav {
  height: 21px;
  /* width: 85px; */
  line-height: 21px;
  /* text-align: center; */
  font-size: 14px;
  border: 1px solid #ccc;
  border-bottom: 0px solid #81c5ba;
  border-radius: 6px 6px 0px 0px;
  padding: 3px 15px 0px 15px;
  margin: 0px 1px 0px 0px;
  display: inline-block;
}

tab a.active,
tab-nav.active {
  background-color: #81c5ba;
  color: #fff;
  border: 1px solid #81c5ba;
}

/**/

aside {
  position: sticky;
  width: 200px;
  left: 0;
  top: 0;
  float: left;
  clear: both;
}

aside menu a {
  display: block;
}

main {
  margin-left: 210px;
  display: block;
  width: calc(100% - 210px);
  /* position: fixed; */
}

/* 弹出窗体 */

popheader {
  display: block;
  background-color: #81c5ba;
  color: #fff;
  padding: 3px 10px;
  position: relative;
  /* height: 30px; */
  /* line-height: 30px; */
  /* vertical-align: middle; */
  font-size: 14px;
  font-weight: bold;
}

dialog {
  box-shadow: 1px 1px 5px 5px rgba(0, 0, 0, 0.1);
}

popdialog {
  display: block;
  position: absolute;
  border-radius: 4px;
  background: #fff;
  box-shadow: 1px 1px 5px 5px rgba(0, 0, 0, 0.1);
  max-height: calc(100% - 10px);
  max-width: calc(100% - 10px);
  overflow: hidden; 
}

closeicon {
  position: absolute;
  right: 10px;
  top: 0;
  cursor: pointer;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  filter: alpha(opacity=50);
  opacity: 0.5;
}

popmask {
  display: grid;
  place-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

popbody {
  display: block;
  padding: 5px 10px;
  position: relative;
  height: calc(100% - 30px);
}

/* popbody div {
  margin: 15px 0;
} */

/* popbody label {
    display: inline-block;
    width: 100px;
    text-align: right;
} */

/* popbody span {
  display: none;
  color: red;
  font-size: 12px;
  margin-left: 15px;
} */

th {
  border-bottom: solid 1px;
}

lazyload > tr:hover,
lazyload > tr:nth-child(odd):hover,
tbody > tr:nth-child(odd):hover,
tbody > tr:hover {
  background-color: #ccc;
}

lazyload > tr:nth-child(odd),
tbody > tr:nth-child(odd) {
  background-color: antiquewhite;
  /* background-color: #f0f0f0; */
  /* background-color: beige; */
}

tbody a {
  display: inline-block;
}

label {
  box-sizing: border-box;
  display: inline-block;
  width: 90px;
  color: #81c5ba;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

button {
  height: 26px;
  border: solid 1px #81c5ba;
  border-radius: 13px;
  margin: 3px;
  outline: none;
  padding: 0px 13px 0px 13px;
  vertical-align: middle;
  white-space: nowrap;
}

button:hover {
  background-color: #81c5ba;
  color: #fff;
}

block {
  display: block;
}

f1,
f2,
f3 {
  box-sizing: border-box;
  display: inline-block;
  padding: 0px 3px;
  height: 22px;
}

f1 {
  width: 280px;
}

f2 {
  width: 560px;
}

f3 {
  width: 840px;
}

field {
  display: inline-block;
  width: calc(280px * var(--colspan));
}

f1 > input,
f2 > input,
f3 > input,
field > input {
  width: calc(100% - 96px);
  border: none;
  border-bottom: solid 1px #ccc;
  outline: none;
  margin: 0px;
}

f1 > select,
f2 > select,
f3 > select,
field > select {
  width: calc(100% - 90px);
}

fieldset {
  box-sizing: border-box;
  border: solid 1px #ccc;
  border-radius: 5px;
  margin-bottom: 3px;
  max-width: 100%;
  overflow: auto;
}

td {
  padding: 4px 5px;
}

input:not([type="checkbox"]),
select,
textarea {
  border: #ccc 1px solid;
}

td > input:not([type="checkbox"]),
td > select {
  width: calc(100% - 8px);
}
td > textarea {
  width: calc(100% - 4px);
}

td button {
  height: 16px;
  border: solid 1px #81c5ba;
  font-size: 12px;
  border-radius: 8px;
  margin: 0px;
  outline: none;
  padding: 0px 11px 0px 11px;
  vertical-align: middle;
}

td.right {
  text-align: right;
}

.footer {
  position: fixed;
  /* border-top: solid 1px; */
  bottom: 0px;
  /* width: calc(100% - 30px); */
}

textarea {
  width: calc(100% - 8px);
}

a {
  cursor: pointer;
}

tag {
  display: inline-block;
  font-size: 12px;
  border: orange solid 1px;
  border-radius: 5px;
  padding: 3px;
  margin: 0px 2px;
  background-color: white;
  color: black;
}

lazyloadlist,
gridview {
  /* position: relative; */
  display: block;
  /* overflow: scroll; */
  overflow: auto;
  width: 100%;
}

lazyloadlist {
  position: fixed;
}

/* gridview td {
  white-space: pre-line;
} */

lazyloadlist.excel,
gridview.excel {
  box-sizing: border-box;
  display: block;
  width: 100%;
  font-size: 12px;
}

lazyloadlist table,
gridview.excel table {
  table-layout: fixed;
  width: max-content;
  border-spacing: 0px;
}

lazyloadlist thead,
gridview.excel thead {
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 2;
}

/* gridview.excel td:hover {
  border: solid 1px red;
} */

lazyloadlist.excel th,
lazyloadlist.excel td,
gridview.excel th,
gridview.excel td {
  margin: 1px;
  padding: 4px;
  /* border: solid 1px #ccc;
  border-collapse: collapse; */
}

lazyloadlist.excel th.fixed,
lazyloadlist.excel td.fixed,
gridview.excel th.fixed,
gridview.excel td.fixed,
gridview.excel col.fixed {
  position: sticky;
  left: 0;
  background-color: #fff;
  opacity: 0.9;
  z-index: 1;
}

/* gridview.excel th.fixed:hover,
gridview.excel td.fixed:hover {
  background-color: #ccc;
} */
lazyloadlist.excel th.fixright,
lazyloadlist.excel td.fixright,
gridview.excel th.fixright,
gridview.excel td.fixright {
  position: sticky;
  right: 0;
  background-color: #fff;
  z-index: 1;
}

lazyloadlist.excel input,
gridview.excel input {
  /* border: none; */
  border: 1px solid #ccc;
  background-color: transparent;
}

lazyloadlist.excel input:hover,
gridview.excel input:hover {
  background-color: white;
}

lazyloadlist.excel td.warning,
gridview.excel td.warning {
  background-color: red;
  color: white;
}

lazyloadlist.excel td.updated,
gridview.excel td.updated {
  background-color: yellow;
  color: white;
}
td.editable:hover {
  background-color: white;
  /* border: solid 1px gainsboro; */
}

td.editable span {
  display: block;
  width: 100%;
  min-height: 16px;
}

gridview tr.unmatched {
  background-color: yellow;
}

gridview tr.unmatched:nth-child(odd) {
  background-color: yellowgreen;
}
gridview tr.unmatched:hover {
  background-color: #ccc;
}

lazyloadlist td,
lazyloadlist th,
gridview td,
gridview th {
  word-break: break-word;
  white-space: pre-wrap;
}
lazyloadlist.excel th,
gridview.excel th {
  position: sticky;
  top: 0;
}

lazyloadlist tfoot,
gridview tfoot {
  position: sticky;
  background-color: white;
  bottom: 0;
  z-index: 2;
}

lazyloadlist tfoot tr:first-child td,
gridview tfoot tr:first-child td {
  border-top: black 1px solid;
}

worksheet textarea {
  height: 17px;
  padding: 1px;
  resize: none;
}

input:invalid {
  border-color: red;
}

underline {
  display: block;
  width: calc(100% - 4px);
  margin: auto;
  min-height: 15px;
  border-bottom: #ccc 1px solid;
}

table lazyload {
  display: table-row-group;
}
table lazyloadtriger {
  display: table-row;
}

table lazyloadtriger > message {
  display: table-cell;
  position: absolute;
}

menu {
  padding-inline-start: 10px;
}

menu li:hover {
  background-color: antiquewhite;
}

menu li.active {
  background-color: #ccc;
}

tr.sum td {
  border-top: #ccc 1px solid;
  background-color: white;
}

tr.category td {
  border-top: #ccc 1px solid;
  background-color: white;
}

warning {
  display: block;
  color: red;
}
